<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/sits/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/sits/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/sits/Css/style.css" />
    <script type="text/javascript" src="/sits/Js/jquery.js"></script>
    <script type="text/javascript" src="/sits/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="/sits/Js/bootstrap.js"></script>
    <script type="text/javascript" src="/sits/Js/ckform.js"></script>
    <script type="text/javascript" src="/sits/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>

<body>
    <form class="form-inline definewidth m20" action="index.html" method="get">
        焦点图名称：
        <input type="text" name="rolename" id="rolename" class="abc input-default" placeholder="" value="">&nbsp;&nbsp;
        <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp;
        <button type="button" class="btn btn-success" id="addnew">添加焦点图</button>
    </form>
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>焦点图编号</th>
                <th>名称</th>
                <th>描述</th>
                <th>预览</th>
                <th>管理操作</th>
            </tr>
        </thead>
        <% for( var i = 0; i < list.length; i++ ){

        %>
        <tr>
            <td><%= list[i].id %></td>
            <td><%= list[i].title %></td>
            <td><%= list[i].description %></td>
            <td><%= list[i].href %></td>
            <td>
                <a href="/admin/banner/edit">编辑</a>

            </td>
        </tr>
        <%} %>
        
    </table>
    <div class="inline pull-right page">
        10122 条记录 1/507 页
        <a href='#'>下一页</a>
        <span class='current'>1</span>
        <a href='#'>2</a>
        <a href='/chinapost/index.php?m=Label&a=index&p=3'>3</a>
        <a href='#'>4</a>
        <a href='#'>5</a>
        <a href='#'>下5页</a>
        <a href='#'>最后一页</a>
    </div>
</body>

</html>
<script>
    $(function () {

        $('#addnew').click(function () {

            window.location.href = "/admin/banner/add";
        });


    });

    function del(id) {


        if (confirm("确定要删除吗？")) {

            var url = "index.html";

            window.location.href = url;

        }




    }
</script>